package com.bdqn.t296.noso.service.Imp;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.t296.noso.entity.Lrecord;
import com.bdqn.t296.noso.entity.Pay;
import com.bdqn.t296.noso.entity.Register;
import com.bdqn.t296.noso.mapper.PayMapper;
import com.bdqn.t296.noso.service.LpayService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LpayServicelmp implements LpayService {
    @Resource
    private PayMapper payMapper;
    @Override
    public int updPay(Register register) {
        return payMapper.updPay(register);
    }

    @Override
    public int addPay(Register register) {
        return payMapper.addPay(register);
    }

    @Override
    public IPage<Pay> selPays(Page<Pay> page, QueryWrapper<Pay> userQueryWrapper) {
        return payMapper.selPays(page,userQueryWrapper);
    }
    @Override
    public List<Lrecord> selSurplus(Lrecord lrecord) {
        return payMapper.selSurplus(lrecord);
    }


}
